<?php
// +----------------------------------------------------------------------
// | FastXCMS [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.fastxcms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Powerless < wzxaini9@gmail.com>
// +----------------------------------------------------------------------
namespace app\user\controller;

use cmf\controller\UserBaseController;
use app\user\model\UserIntegralModel;
use think\Db;

class IntegralController extends UserBaseController
{

    /**
     * 个人中心积分记录列表
     */
    public function index()
    {
		// 页页标题
		$headmeta['title'] = '积分记录';
		$this->assign('headmeta', $headmeta);
		
        $userIntegralModel = new UserIntegralModel();
        $data              = $userIntegralModel->favorites();
        $user              = cmf_get_current_user();
        $this->assign($user);
        $this->assign("page", $data['page']);
        $this->assign("lists", $data['lists']);
        return $this->fetch();
    }
}